<?php

/** @Table("category1") */
class category1 extends Model {

    /** @Column("{'name':'id', 'type':'int','length':'11', 'primaryKey':'true'}") */
    public $id;

    /** @Column("{'name':'group_category', 'type':'int','length':'11', {''}}") */
    var $group_category;

    /** @Column("{'name':'description', 'type':'varchar', 'length':'255', 'unique':'true', 'nullable':'false'}") */
    public $description;

    public function __construct() {
        $this->id = null;
        $this->group_category = new group_category();
        $this->description = "";
        parent::__construct();
    }

    public function construct($id = 0, group_category $group_category = null, $description = "") {
        $this->id = $id;
        $this->group_category = $group_category;
        $this->description = $description;
    }

    public function getId() {
        return $this->id;
    }

    public function getGroupCategory() {
        return $this->GroupCategory;
    }

    public function getDescription() {
        return $this->description;
    }

    public function setId($id = 0) {
        $this->id = $id;
    }

    public function setGroupCategory(group_category $group_category = null) {
        $this->group_category = $group_category;
    }

    public function setDescription($description = "") {
        $this->description = $description;
    }

}
